<?php

namespace Database\Seeders;

use App\Models\Configs;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class ConfigsSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $sql = "INSERT INTO `configs` (`id`, `group`, `name`, `key`, `value`, `desc`, `created_at`, `updated_at`)
            VALUES
                ('1', 'wechat', '开发者ID', 'wx_app_id', 'wx2509270923333', '开发者ID是账号开发识别码，配合开发者密码可调用账号的接口能力。', NULL, NULL),
                ('2', 'wechat', '开发者密钥', 'wx_app_secret', 'M12F3BJ45OI6729U37JK0001AJO18', NULL, NULL, NULL),
                ('3', 'wechat', '商户号', 'wx_mch_id', '1523894324233', NULL, NULL, NULL),
                ('4', 'wechat', '商户密钥', 'wx_mch_secret', '1830123782934782367', NULL, NULL, NULL),
                ('5', 'wechat', '支付回调地址', 'wx_notify_url', '/api/xxxx/xxxx', NULL, NULL, NULL),
                ('11', 'ali', '支付宝开发ID', 'ali_app_id', 'ali128743284724', NULL, NULL, NULL),
                ('12', 'ali', '支付宝密钥', 'ali_app_secret', '1234567890782', NULL, NULL, NULL),
                ('15', 'ali', '支付宝回调地址', 'ali_notify_url', '/api/notify/ali', NULL, NULL, NULL),
                ('47', 'system', '公司名称', 'company_name', '上海麒音文化传播有限公司', NULL, NULL, NULL),
                ('48', 'system', '公司LOGO', 'company_logo_url', 'http://shqy.test/storage/uploads/202510/17607148282496.png', NULL, NULL, NULL),
                ('49', 'system', '公司地址', 'company_addr', '上海市普陀区陕西北路 1283 弄 9 号楼 3202-04 室', NULL, NULL, NULL),
                ('50', 'system', '联系电话', 'company_tel', '021-6256516', NULL, NULL, NULL),
                ('51', 'system', '商务电话', 'company_phone', '13641671326', NULL, NULL, NULL),
                ('52', 'system', '关注我们', 'aboutus_url', 'http://qiyin.useradmin.cn/storage/uploads/202510/17612721780077.png', NULL, NULL, NULL),
                ('53', 'system', '商务邮箱', 'email', 'soundmachinestudio@163.com', NULL, NULL, NULL),
                ('54', 'system', '公司QQ号', 'qq', '987288006', NULL, NULL, NULL),
                ('55', 'system', '邮政编码', 'postcode', '200062', NULL, NULL, NULL);
            ";
        DB::unprepared($sql);
    }
}
